package com.gxa.controller;

import com.gxa.common.R;
import com.gxa.service.CustomerService;
import com.gxa.service.impl.CustomerServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@Controller
@Api(value = "客户数据test",tags = "客户数据接口API")
public class CustomerController {

    @Autowired(required = false)
    private CustomerService customerService;

    @RequestMapping(value = "/queryCustomerByInfo",method = RequestMethod.POST)
    @ApiOperation(value = "动态客户数据接口",notes = "动态客户数据",httpMethod = "POST", response = R.class)
    @ApiResponses({
            @ApiResponse(code=200,message="请求成功"),
            @ApiResponse(code=404,message="找不到页面"),
            @ApiResponse(code=500,message="后台服务错误")
    })
    @ResponseBody
    public R queryCustomerByInfo(@RequestBody Map map){
        R r = customerService.queryCustomerByInfo(map);
        return r;
    }
}
